package cn.ywang.spring.customized.framework.webmvc;

import java.lang.reflect.Method;
import java.util.regex.Pattern;

/**
 * URL/类方法映射器
 *
 * @author BeatificWang
 * @date 2018/11/7 21:26
 */
public class HandlerMapping {
	/**
	 * url的封装，正则表达式
	 */
	private Pattern pattern;
	private Object controller;
	private Method method;

	public HandlerMapping(Pattern pattern, Object controller, Method method) {
		this.pattern = pattern;
		this.controller = controller;
		this.method = method;
	}

	public Pattern getPattern() {
		return this.pattern;
	}

	public void setPattern(Pattern pattern) {
		this.pattern = pattern;
	}

	public Object getController() {
		return this.controller;
	}

	public void setController(Object controller) {
		this.controller = controller;
	}

	public Method getMethod() {
		return this.method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}
}
